package com.qingyun.feedbackservice.client;

import com.qingyun.common.dto.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Schedule服务Feign客户端
 */
@FeignClient("schedule-service")
public interface ScheduleClient {

    /**
     * 根据课表ID获取课表信息
     */
    @GetMapping("/internal/scheduleInfo")
    Result getScheduleInfo(@RequestParam("scheduleId") Long scheduleId);

    /**
     * 根据课程ID获取课程信息
     */
    @GetMapping("/internal/courseInfo")
    Result getCourseName(@RequestParam("courseId") Long courseId);
}
